﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Pages_WishList : System.Web.UI.Page
{
    StoreApplicationService sas = new StoreApplicationService();
    protected void Page_Load(object sender, EventArgs e)
    {
        var wl = sas.GetAllWishlists();
        if (wl.Count > 0)
        {
            WishListsGV.DataSource = wl;
            WishListsGV.DataBind();
        }
        else
        {
            Msg.Text = "Nu sa gasit nici un wishlist";
        }
    }
}